package com.yunhe.day322.service;

import com.yunhe.day322.domain.Role;
import com.yunhe.day322.domain.UserInfo;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.List;
import java.util.Map;

public interface UserService extends UserDetailsService {
    void save(UserInfo userInfo);
    /**
     * 查询所有用户
     * @return
     */
    List<UserInfo> findAllUsers(Integer page, Integer size);

    public void deleteUserRole(int id);

    void deleteById(int id);

    UserInfo findUserInfoById(Integer id);

    List<Role> findOtherRole(Integer id);

    UserInfo findUserById(Integer id);

    void addRoleToUser(Integer userId, Integer[] ids);
}
